/*    */ package com.chw.utils;
/*    */ 
/*    */ import java.text.SimpleDateFormat;
/*    */ import java.util.Date;
/*    */ import org.apache.commons.lang3.time.DateUtils;
/*    */ 
/*    */ public class TimeUtil extends DateUtils
/*    */ {
/*    */   public static final String YYYY_MM = "yyyy-MM";
/*    */   public static final String YYYY_MM_DD = "yyyy-MM-dd";
/*    */   public static final String YYMMDD = "yyMMdd";
/* 13 */   private static SimpleDateFormat format = new SimpleDateFormat();
/*    */ 
/*    */   public static String formatDate(Date date, String formatType)
/*    */   {
/* 24 */     format.applyPattern(formatType);
/* 25 */     String dateStr = format.format(date);
/* 26 */     return dateStr;
/*    */   }
/*    */ }
